Repository navigation
Add CI check for examples using deprecated elements - #568
Merged
kflemin merged 5 commits intoNov 6, 2026
Merged
Conversation
kflemin
approved these changes
Nov 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Any background context you want to provide?
Several elements and enumerations in
BuildingSync.xsdare markedWARNING: ... being deprecatedin theirxs:documentation, but some example files still use them. Implementers use the examples as their main reference, so we should be able to see where the examples still model deprecated usage. Until now, CI (spec/validation_spec.rb) checked only XSD validity, tabs, XMLSpy content,complexContent, and name collisions.Decisions for this PR:
What does this PR do?
Adds the RSpec check
No deprecated elements in examplestospec/validation_spec.rb:xs:elementandxs:enumerationwhosexs:documentationmatches/deprecat/i, so newly deprecated items are picked up without editing the spec.ref: flagged only under that parent (for example,CoolingSource/Capacity).Site/WeatherDataStationIDis flagged, butWeatherStations/WeatherStation/WeatherDataStationIDis not.TimeSeriesReadingQuantity=Currency).WARNING: Deprecated usages found in examples:to stderr, with the file, usage, count, and line numbers for each finding.GITHUB_STEP_SUMMARY).No schema or example changes.
Current findings:
TimeSeriesReadingQuantity=CurrencyBoiler/OutputCapacity,HeatingSource/OutputCapacityBoiler/OutputCapacity,HeatingSource/OutputCapacityBoiler/OutputCapacity,HeatingSource/OutputCapacityHeatingSource/OutputCapacitySite/WeatherDataStationID,Site/WeatherStationNameSite/WeatherDataStationID,Site/WeatherStationName,Boiler/OutputCapacitySite/WeatherDataStationID,Site/WeatherStationName,Boiler/OutputCapacityHow should this be manually tested?
bundle exec rake. Expect7 examples, 0 failures, and the warning list printed in the output.tmp/summary.md:What are the relevant tickets?
Closes #560
Screenshots (if appropriate)